/*
 * <p>Copyright ®Alyce_WX版权所有。</p>
 * 类名:LinkPO
 * 创建人:alyce_wx
 * 创建时间:2017-03-30
 */
package com.wx.demo.wcd.domain.po;


import com.yjhl.framework.domain.po.PO;
import com.wx.demo.wcd.domain.pk.LinkPK;

/**
 * persistent class for Link 
 * @author alyce_wx
 * @since 1.8
 * @version 1.0.0  
 */
 
public class LinkPO extends PO {
    private static final long serialVersionUID = 1L;
    
    /**
     * 链接表标识
     */
    private String linkId;
    
    /**
     * 链接分类
     */
    private String linkType;
    
    /**
     * 链接地址
     */
    private String linkUrl;
    
    /**
     * 备注
     */
    private String remark;

    public String getLinkId() {
        return linkId;
    }

    public void setLinkId(String linkId) {
        this.linkId = linkId;
    }

    public String getLinkType() {
        return linkType;
    }

    public void setLinkType(String linkType) {
        this.linkType = linkType;
    }

    public String getLinkUrl() {
        return linkUrl;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    
    
	/**
	 * @see com.yjhl.framework.domain.po.PO#isNull()
	 */
	@Override
    public boolean isNull(){
		return (		
    		linkId == null     	
    		&&
    		linkType == null     	
    		&&
    		linkUrl == null     	
    		&&
    		remark == null     	
				);
	}
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#isEmpty()
	 */
	@Override
    public boolean isEmpty(){
		return (		
    	linkId == null 
    		&&
    	linkType == null 
    		&&
    	linkUrl == null 
    		&&
    	remark == null 
				);
	}
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#isNonPkNull()
	 */
	@Override
    public boolean isNonPkNull(){
		return (		
    		linkType == null     	
    		&&
    		linkUrl == null     	
    		&&
    		remark == null     	
				);
	}

	/**
	 * @see com.yjhl.framework.domain.po.PO#isNonPkEmpty()
	 */
	@Override
    public boolean isNonPkEmpty(){
		return (		
    	linkType == null 
    		&&
    	linkUrl == null 
    		&&
    	remark == null 
				);
	}
	
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#buildPK()
	 */
	@Override
    public LinkPK buildPK(){
    	LinkPK entityPK = new LinkPK();
    	
		entityPK.setLinkId( linkId );
    	
    	return entityPK;
	}
	
	
	@Override
	public String toString(){
		
		String toString = "{";
		  	 if(this.linkId != null){
		   	 	toString += (this.linkId+",");
		   	 }
		  	 if(this.linkType != null){
		   	 	toString += (this.linkType+",");
		   	 }
		  	 if(this.linkUrl != null){
		   	 	toString += (this.linkUrl+",");
		   	 }
		  	 if(this.remark != null){
		   	 	toString += (this.remark+",");
		   	 }
		  if(toString.lastIndexOf(",") == ( toString.length()-1)){
		  	toString = toString.substring(0, toString.length()-1);
		  }
		 toString += "}";
		return toString;
		
	}
	
	public String inputDescription(){
		
		String inputDescription = "{";
		   if(this.linkId != null){
		   		inputDescription += (this.linkId+" : 链接表标识,");
		   }
		   if(this.linkType != null){
		   		inputDescription += (this.linkType+" : 链接分类,");
		   }
		   if(this.linkUrl != null){
		   		inputDescription += (this.linkUrl+" : 链接地址,");
		   }
		   if(this.remark != null){
		   		inputDescription += (this.remark+" : 备注,");
		   }
		  if(inputDescription.lastIndexOf(",") == ( inputDescription.length()-1)){
		  	inputDescription = inputDescription.substring(0, inputDescription.length()-1);
		  }
		  inputDescription += "}";
		
		return inputDescription;
	}
}
